<?php
class dynamic_parameters extends db_table {
	/**
	 * Dynamic parameter ID
	 *
	 * @var db_field
	 */
	public $dparam_id;
	/**
	 * Dynamic categorie ID
	 *
	 * @var db_field
	 */
	public $dcat_id;
	/**
	 * Dynamic parameter name
	 *
	 * @var db_field
	 */
	public $dparam_name;
	/**
	 * Dinamic parameter caption
	 *
	 * @var db_field
	 */
	public $dparam_caption;
	/**
	 * Dynamic parameter type
	 *
	 * @var db_field
	 */
	public $dparam_type;
	/**
	 * Dynamic parameter minimal occur count
	 *
	 * @var db_field
	 */
	public $dparam_min_occur;
	/**
	 * Dynamic parameter maximal occur count
	 *
	 * @var db_field
	 */
	public $dparam_max_occur;
	/**
	 * Dynamic parameter private status
	 *
	 * @var db_field
	 */
	public $dparam_private;

	/**
	 * Constructor
	 *
	 * @param mixed $id
	 */
	public function __construct($id = null) {
		parent::__construct($id);
	}

	public static function type_textfield() {
		return "textfield";
	}

	public static function type_textarea() {
		return "textarea";
	}

	public static function type_select() {
		return "select";
	}

	public static function type_yes_no() {
		return "yes_no";
	}

	public static function type_categorized_textfield() {
		return "categorized_textfield";
	}

	public static function type_file() {
		return "file";
	}

	public static function type_date() {
		return "date";
	}

	public static function type_custom() {
		return "custom";
	}
	
	public static function status_private() {
		return "1";
	}

	public static function status_public() {
		return "0";
	}
}
?>